{%include file="m.index.header.tpl.php"%}
<!--主体部分-->

<div class="container" style="margin-top:70px;">
    <!--<div class="row" style="margin-right:10%;">
        <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="paper_add.html" style="width:30%">增加</a></div>
       </div>--><!--row  end-->
    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        {%foreach from=$shop_lists key=key item=value%}
        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>
                <td>申购人</td>
                <td>{%$value.user_name%}</td>
            </tr>
            <tr>
                <td>采购内容</td>
                <td>{%$value.shop_content|truncate:30:"..."%}</td>
            </tr>
            <tr>
                <td>指派时间</td>
                <td>{%$value.assign_time%}</td>
            </tr>
            <tr>
                <td>采购人员</td>
                <td>{%$value.shops_name%}</td>
            </tr>
            <tr>
                <td>加急项目</td>
                <td>{%if $value.shop_urgent ==1%}<span class="glyphicon glyphicon-ok"></span>{%/if%}</td>

            </tr>
            <tr>
                <td>备注</td>
                <td>{%$value.shop_remark|truncate:30:"..."%}</td>
            </tr>
            <tr>
                <td>采购报告</td>
                <td>{%$value.shop_report|truncate:30:"..."%}</td>
            </tr>

            <td>操作</td>
            <td>
                {%if $value.shop_type==2%}
                <a href="index.php?a=shops.procurementUpdate&shop_id={%$value.shop_id%}" class="btn btn-warning btn-xs">录 入</a>
                {%else $value.shop_type=='完成'%}
                <a class="btn btn-primary btn-xs">完 成</a>
                {%/if%}
                <a href="index.php?a=shops.procurementdetails&shop_id={%$value.shop_id%}&shops_type=caigou" class="btn btn-success btn-xs">查 看</a>
            </td>
            </tr>
        </table>
        {%/foreach%}
    </div>
</div>
<!--container  end-->

<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->
<!--日历-->
<script>
    $(function() {
        $( "#datepicker" ).datepicker({

            changeMonth: true,
            changeYear: true

        });

        $( "#datepicker2" ).datepicker({

            changeMonth: true,
            changeYear: true

        });
    });
</script>
</body>
</html>
